package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.AgentpayPassageAccountServiceApi;
import com.thb.pay.api.payment.vo.req.AgentpayPassageAccountPageReq;
import com.thb.pay.api.payment.vo.req.AgentpayPassageAccountReq;
import com.thb.pay.api.payment.vo.resp.AgentpayPassageAccountVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class AgentpayPassageAccountServiceApiFallbackFactory implements FallbackFactory<AgentpayPassageAccountServiceApi> {


    @Override
    public AgentpayPassageAccountServiceApi create(Throwable throwable) {
        return new AgentpayPassageAccountServiceApi() {
            @Override
            public PageResult<AgentpayPassageAccountVo> findPage(AgentpayPassageAccountPageReq pageReq) {
                return null;
            }

            @Override
            public List<AgentpayPassageAccountVo> findAllList() {
                return null;
            }

            @Override
            public AgentpayPassageAccountVo getById(Long id) {
                return null;
            }

            @Override
            public void add(AgentpayPassageAccountReq agentpayPassageAccountReq) {

            }

            @Override
            public void update(AgentpayPassageAccountReq agentpayPassageAccountReq) {

            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}